package com.running.mobile;

import java.util.Map;

import com.isomorphic.datasource.DSRequest;
import com.isomorphic.datasource.DSResponse;
import com.isomorphic.datasource.DataSource;
import com.isomorphic.datasource.DataSourceManager;

/**
 * 设置用户imsi值
 * @author Administrator
 *
 */
public class UserImsiDMI {
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public DSResponse add(DSRequest request ,Map record)throws Exception
	{
		DataSource imsiDS = DataSourceManager.getDataSource("imsiDS");
		Map imsi = imsiDS.fetchById(record.get("telephone"));
		if(imsi != null){
			record.put("imsi", imsi.get("imsi"));
		}
		request.setValues(record);
		return request.execute();
		 
	}


}
